package de.pasbreuer.openmovieman;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Test {

	public static void fillWithValues(){
		SimpleDateFormat sdfToDate = new SimpleDateFormat(
                "dd.MM.yyyy");
		//ID, Title, Location, PurchaseDate, PurchasePrice
		try {
			EntityManagement.saveEntity(new DVD(1, "Blood Diamond", "Drawer 1", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new BluRay(2, "Dark Knight", "Drawer 1", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(3, "Batman Begins", "Drawer 1", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(4, "Avatar", "Drawer 2", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(5, "Pans Labyrinth", "Drawer 2", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(6, "The Bank Job", "Drawer 1", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(7, "Gran Torino", "Drawer 1", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(8, "Das Boot - Directors Cut", "Drawer 1", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(9, "Private James Ryan", "Drawer 3", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(10, "Shining", "Drawer 3", sdfToDate.parse("01.01.2012"), 10));
			EntityManagement.saveEntity(new DVD(11, "Disturbia", "Drawer 4", sdfToDate.parse("01.01.2012"), 10));
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
}
